<?php
include './base.php';
$idCard=$_POST["idCard"];
$cname=$_POST["cname"];
$gender=$_POST["gender"];
$phone=$_POST["phone"];
$id=$_POST["id"];
$adress=$_POST["adress"];
$sql="update user set idCard = '$idCard',name='$cname',gender='$gender',phone='$phone', adress='$adress' where userId ='$id'";
mysql_query($sql);
print_r("修改成功！");

?>